import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    name: 'layout',
    component:  () => import('@/Layout/index.vue'),
    children: [
      {
        path: '/user',
        name: 'User',
        component:  () => import('@/views/User/index.vue'),
          meta: {
              activeRoute: 'User'
          }
      },
      {
        path: '/user/save/:id?',
        name: 'UserEdit',
        component:  () => import('@/views/User/Save.vue'),
          meta: {
            activeRoute: 'User'
          }
      },
      {
        path: '/user/detail/:id',
        name: 'UserDetail',
        component:  () => import('@/views/User/Detail.vue'),
          meta: {
              activeRoute: 'User'
          }
      },
        {
            path: '/industryCategory',
            name: 'IndustryCategory',
            component:  () => import('@/views/Industry/Category/index.vue'),
            meta: {
                activeRoute: 'IndustryCategory'
            }
        },
        {
            path: '/industryCategory/save/:id?',
            name: 'IndustryCategorySave',
            component:  () => import('@/views/Industry/Category/Save.vue'),
            meta: {
                activeRoute: 'IndustryCategory'
            }
        },
        {
            path: '/industryInfo',
            name: 'IndustryInfo',
            component:  () => import('@/views/Industry/Info/index.vue'),
            meta: {
                activeRoute: 'IndustryInfo'
            }
        },
        {
            path: '/industryInfo/save/:id?',
            name: 'IndustryInfoSave',
            component:  () => import('@/views/Industry/Info/Save.vue'),
            meta: {
                activeRoute: 'IndustryInfo'
            }
        },
        {
            path: '/industryInfo/detail/:id',
            name: 'IndustryInfoDetail',
            component:  () => import('@/views/Industry/Info/Detail.vue'),
            meta: {
                activeRoute: 'IndustryInfo'
            }
        },
        {
            path: '/enterpriseRes',
            name: 'EnterpriseRes',
            component:  () => import('@/views/EnterpriseRes/index.vue'),
            meta: {
                activeRoute: 'EnterpriseRes'
            }
        },
        {
            path: '/enterpriseRes/save/:id?',
            name: 'EnterpriseResEdit',
            component:  () => import('@/views/EnterpriseRes/Save.vue'),
            meta: {
                activeRoute: 'EnterpriseRes'
            }
        },
        {
            path: '/enterpriseRes/detail/:id',
            name: 'EnterpriseResDetail',
            component:  () => import('@/views/EnterpriseRes/Detail.vue'),
            meta: {
                activeRoute: 'EnterpriseRes'
            }
        },
        // 政策
        {
            path: '/policyCategory',
            name: 'PolicyCategory',
            component:  () => import('@/views/Policy/Category/index.vue'),
            meta: {
                activeRoute: 'PolicyCategory'
            }
        },
        {
            path: '/policyCategory/save/:id?',
            name: 'PolicyCategorySave',
            component:  () => import('@/views/Policy/Category/Save.vue'),
            meta: {
                activeRoute: 'PolicyCategory'
            }
        },
        {
            path: '/policyInfo',
            name: 'PolicyInfo',
            component:  () => import('@/views/Policy/Info/index.vue'),
            meta: {
                activeRoute: 'PolicyInfo'
            }
        },
        {
            path: '/policyInfo/save/:id?',
            name: 'PolicyInfoSave',
            component:  () => import('@/views/Policy/Info/Save.vue'),
            meta: {
                activeRoute: 'PolicyInfo'
            }
        },
        {
            path: '/policyInfo/detail/:id',
            name: 'PolicyInfoDetail',
            component:  () => import('@/views/Policy/Info/Detail.vue'),
            meta: {
                activeRoute: 'PolicyInfo'
            }
        },
        {
            path: '/sentiment',
            name: 'Sentiment',
            component:  () => import('@/views/Sentiment/index.vue'),
            meta: {
                activeRoute: 'Sentiment'
            }
        },
        {
            path: '/sentiment/save/:id?',
            name: 'SentimentSave',
            component:  () => import('@/views/Sentiment/Save.vue'),
            meta: {
                activeRoute: 'Sentiment'
            }
        },
        {
            path: '/sentiment/detail/:id',
            name: 'SentimentDetail',
            component:  () => import('@/views/Sentiment/Detail.vue'),
            meta: {
                activeRoute: 'Sentiment'
            }
        },
        {
            path: '/sentiment/rank',
            name: 'SentimentRank',
            component:  () => import('@/views/Sentiment/Rank.vue'),
            meta: {
                activeRoute: 'Sentiment'
            }
        },
        {
            path: '/productCategory',
            name: 'ProductCategory',
            component:  () => import('@/views/Product/Category/index.vue'),
            meta: {
                activeRoute: 'ProductCategory'
            }
        },
        {
            path: '/productCategory/save/:id?',
            name: 'ProductCategorySave',
            component:  () => import('@/views/Product/Category/Save.vue'),
            meta: {
                activeRoute: 'ProductCategory'
            }
        },
        {
            path: '/productInfo',
            name: 'ProductInfo',
            component:  () => import('@/views/Product/Info/index.vue'),
            meta: {
                activeRoute: 'ProductInfo'
            }
        },
        {
            path: '/productInfo/save/:id?',
            name: 'ProductInfoSave',
            component:  () => import('@/views/Product/Info/Save.vue'),
            meta: {
                activeRoute: 'ProductInfo'
            }
        },
        {
            path: '/materialInfo',
            name: 'MaterialInfo',
            component:  () => import('@/views/Product/MaterialInfo/index.vue'),
            meta: {
                activeRoute: 'MaterialInfo'
            }
        },
        {
            path: '/materialInfo/save/:id?',
            name: 'MaterialInfoSave',
            component:  () => import('@/views/Product/MaterialInfo/Save.vue'),
            meta: {
                activeRoute: 'MaterialInfo'
            }
        },
        {
            path: '/ProfessionDynamic',
            name: 'ProfessionDynamic',
            component:  () => import('@/views/Profession/ProfessionDynamic/index.vue'),
            meta: {
                activeRoute: 'ProfessionDynamic'
            }
        },
        {
            path: '/ProfessionDynamic/save/:id?',
            name: 'ProfessionDynamicSave',
            component:  () => import('@/views/Profession/ProfessionDynamic/Save.vue'),
            meta: {
                activeRoute: 'ProfessionDynamic'
            }
        },
        {
            path: '/ProfessionDynamic/detail/:id',
            name: 'ProfessionDynamicDetail',
            component:  () => import('@/views/Profession/ProfessionDynamic/Detail.vue'),
            meta: {
                activeRoute: 'ProfessionDynamic'
            }
        },
        {
            path: '/Meeting',
            name: 'Meeting',
            component:  () => import('@/views/Profession/Meeting/index.vue'),
            meta: {
                activeRoute: 'Meeting'
            }
        },
        {
            path: '/Meeting/save/:id?',
            name: 'MeetingSave',
            component:  () => import('@/views/Profession/Meeting/Save.vue'),
            meta: {
                activeRoute: 'Meeting'
            }
        },
        {
            path: '/Meeting/detail/:id',
            name: 'MeetingDetail',
            component:  () => import('@/views/Profession/Meeting/Detail.vue'),
            meta: {
                activeRoute: 'Meeting'
            }
        },
        {
            path: '/EnterpriseConsult',
            name: 'EnterpriseConsult',
            component:  () => import('@/views/Profession/EnterpriseConsult/index.vue'),
            meta: {
                activeRoute: 'EnterpriseConsult'
            }
        },
        {
            path: '/EnterpriseConsult/save/:id?',
            name: 'EnterpriseConsultSave',
            component:  () => import('@/views/Profession/EnterpriseConsult/Save.vue'),
            meta: {
                activeRoute: 'EnterpriseConsult'
            }
        },
        {
            path: '/EnterpriseConsult/detail/:id',
            name: 'EnterpriseConsultDetail',
            component:  () => import('@/views/Profession/EnterpriseConsult/Detail.vue'),
            meta: {
                activeRoute: 'EnterpriseConsult'
            }
        },
        {
            path: '/Tender',
            name: 'Tender',
            component:  () => import('@/views/Profession/Tender/index.vue'),
            meta: {
                activeRoute: 'Tender'
            }
        },
        {
            path: '/Tender/save/:id?',
            name: 'TenderSave',
            component:  () => import('@/views/Profession/Tender/Save.vue'),
            meta: {
                activeRoute: 'Tender'
            }
        },
        {
            path: '/Tender/detail/:id',
            name: 'TenderDetail',
            component:  () => import('@/views/Profession/Tender/Detail.vue'),
            meta: {
                activeRoute: 'Tender'
            }
        },
        {
            path: '/Account',
            name: 'Admin',
            component:  () => import('@/views/Permission/Account/index.vue'),
            meta: {
                activeRoute: 'Admin'
            }
        },
        {
            path: '/Account/save/:id?',
            name: 'AccountSave',
            component:  () => import('@/views/Permission/Account/Save.vue'),
            meta: {
                activeRoute: 'Admin'
            }
        },
        {
            path: '/Role',
            name: 'Role',
            component:  () => import('@/views/Permission/Role/index.vue'),
            meta: {
                activeRoute: 'Role'
            }
        },
        {
            path: '/Role/save/:id?',
            name: 'RoleSave',
            component:  () => import('@/views/Permission/Role/Save.vue'),
            meta: {
                activeRoute: 'Role'
            }
        },
        {
            path: '/DigitizationCategory',
            name: 'DigitizationCategory',
            component:  () => import('@/views/Digitization/Category/index.vue'),
            meta: {
                activeRoute: 'DigitizationCategory'
            }
        },
        {
            path: '/DigitizationCategory/save/:id?',
            name: 'DigitizationCategorySave',
            component:  () => import('@/views/Digitization/Category/Save.vue'),
            meta: {
                activeRoute: 'DigitizationCategory'
            }
        },
        {
            path: '/DigitizationApp',
            name: 'DigitizationApp',
            component:  () => import('@/views/Digitization/App/index.vue'),
            meta: {
                activeRoute: 'DigitizationApp'
            }
        },
        {
            path: '/DigitizationApp/save/:id?',
            name: 'DigitizationAppSave',
            component:  () => import('@/views/Digitization/App/Save.vue'),
            meta: {
                activeRoute: 'DigitizationApp'
            }
        },
        {
            path: '/DigitizationApp/detail/:id',
            name: 'DigitizationAppDetail',
            component:  () => import('@/views/Digitization/App/Detail.vue'),
            meta: {
                activeRoute: 'DigitizationApp'
            }
        },
        {
            path: '/Banner',
            name: 'Banner',
            component:  () => import('@/views/Banner/index.vue'),
            meta: {
                activeRoute: 'Banner'
            }
        },
        {
            path: '/Banner/save/:id?',
            name: 'BannerSave',
            component:  () => import('@/views/Banner/Save.vue'),
            meta: {
                activeRoute: 'Banner'
            }
        },
        {
            path: '/DigitizationApp',
            name: 'DigitizationApp',
            component:  () => import('@/views/Digitization/App/index.vue'),
            meta: {
                activeRoute: 'DigitizationApp'
            }
        },
        {
            path: '/DigitizationApp/save/:id?',
            name: 'DigitizationAppSave',
            component:  () => import('@/views/Digitization/App/Save.vue'),
            meta: {
                activeRoute: 'DigitizationApp'
            }
        },
        {
            path: '/DigitizationApp/detail/:id',
            name: 'DigitizationAppDetail',
            component:  () => import('@/views/Digitization/App/Detail.vue'),
            meta: {
                activeRoute: 'DigitizationApp'
            }
        },
        //
        {
            path: '/UserDynamic',
            name: 'UserDynamic',
            component:  () => import('@/views/UserCommunity/UserDynamic/index.vue'),
            meta: {
                activeRoute: 'UserDynamic'
            }
        },
        {
            path: '/UserDynamic/detail/:id',
            name: 'UserDynamicDetail',
            component:  () => import('@/views/UserCommunity/UserDynamic/Detail.vue'),
            meta: {
                activeRoute: 'UserDynamic'
            }
        },
        //
        {
            path: '/IndustryCircle',
            name: 'IndustryCircle',
            component:  () => import('@/views/UserCommunity/IndustryCircle/index.vue'),
            meta: {
                activeRoute: 'IndustryCircle'
            }
        },
        {
            path: '/IndustryCircle/save/:id?',
            name: 'IndustryCircleSave',
            component:  () => import('@/views/UserCommunity/IndustryCircle/Save.vue'),
            meta: {
                activeRoute: 'IndustryCircle'
            }
        },
        {
            path: '/IndustryCircle/detail/:id',
            name: 'IndustryCircleDetail',
            component:  () => import('@/views/UserCommunity/IndustryCircle/Detail.vue'),
            meta: {
                activeRoute: 'IndustryCircle'
            }
        },
        //
        {
            path: '/ProductCircle',
            name: 'ProductCircle',
            component:  () => import('@/views/UserCommunity/ProductCircle/index.vue'),
            meta: {
                activeRoute: 'ProductCircle'
            }
        },
        {
            path: '/ProductCircle/save/:id?',
            name: 'ProductCircleSave',
            component:  () => import('@/views/UserCommunity/ProductCircle/Save.vue'),
            meta: {
                activeRoute: 'ProductCircle'
            }
        },
        {
            path: '/ProductCircle/detail/:id',
            name: 'ProductCircleDetail',
            component:  () => import('@/views/UserCommunity/ProductCircle/Detail.vue'),
            meta: {
                activeRoute: 'ProductCircle'
            }
        },
        //
        {
            path: '/ActivityPublish',
            name: 'ActivityPublish',
            component:  () => import('@/views/UserCommunity/ActivityPublish/index.vue'),
            meta: {
                activeRoute: 'ActivityPublish'
            }
        },
        {
            path: '/ActivityPublish/save/:id?',
            name: 'ActivityPublishSave',
            component:  () => import('@/views/UserCommunity/ActivityPublish/Save.vue'),
            meta: {
                activeRoute: 'ActivityPublish'
            }
        },
        {
            path: '/ActivityPublish/detail/:id',
            name: 'ActivityPublishDetail',
            component:  () => import('@/views/UserCommunity/ActivityPublish/Detail.vue'),
            meta: {
                activeRoute: 'ActivityPublish'
            }
        },
        {
            path: '/Server',
            name: 'Server',
            component:  () => import('@/views/Server/index.vue'),
            meta: {
                activeRoute: 'Server'
            }
        },
        {
            path: '/Server/save/:id',
            name: 'ActivityPublishSave',
            component:  () => import('@/views/Server/Save.vue'),
            meta: {
                activeRoute: 'Server'
            }
        },
        {
            path: '/Server/detail/:id',
            name: 'ActivityPublishDetail',
            component:  () => import('@/views/Server/Detail.vue'),
            meta: {
                activeRoute: 'Server'
            }
        },
    ]
  },
    {
        path: '/login',
        name: 'login',
        component:  () => import('@/views/Login.vue'),
    }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
